<template>
  <div id="app"
       :class="{'dark':isCollapse === 'dark','light':isCollapse === 'light'}">
    <router-view />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  name: 'App',
  computed: {
    ...mapGetters([
      'themeCss'
    ]),
    isCollapse () {
      return this.themeCss
    }
  },
  methods:{

  },
  destroyed() {
    this.$cookie.delete('vue_admin_template_token');
  },beforeDestroy() {
    this.$cookie.delete('vue_admin_template_token');
  }
}
</script>
